import YearMonthPicker from '@/components/year-month-picker'

export default {
  components: { YearMonthPicker },
  data () {
    return {
      time: ''
    }
  },
  computed: {
    isYear () {
      const time = this.time
      return time.length === 4 || /^\d{4}$/.test(time)
    },
  },
}
